import axios from "../../utils/axios";
/**
 *  2.0版本
 */

// /dailyBus/deleteDailyNew 删除每日新品
export function deleteDailyNew(query) {
    return axios({
        url: "/dailyBus/deleteDailyNew",
        method: "get",
        params: query
    });
}
// /dailyBus/batchAddDailyNew 批量添加每日新品
export function batchAddDailyNew(query) {
    return axios({
        url: "/dailyBus/batchAddDailyNew",
        method: "get",
        params: query
    });
}
export function getCompanyPosition(query) {
    return axios({
        url: "/goldendays-promote/cooperativeBrand/getCompanyPosition",
        method: "get",
        params: query
    });
}
// /pick/getPickUpOrdersList 提货管理 获取当前商家的商品列表
export function getPickUpOrdersList(query) {
    return axios({
        url: "/goldendays-order/merchantsOrders/getPickUpOrdersList",
        method: "get",
        params: query
    });
}

// /pick/getDetailList 提货管理 查看详情
export function getDetailList(query) {
    return axios({
        url: "/goldendays-user/pick/getDetailList",
        method: "get",
        params: query
    });
}
// /pick/changeStatus 商家端-修改提货单状态
export function changeStatus(query) {
    return axios({
        url: "/goldendays-user/pick/changeStatus",
        method: "post",
        data: query
    });
}
// /pick/getPurchaseOrdersList 获取商户进货列表
export function getPurchaseOrdersList(query) {
    return axios({
        url: "/goldendays-order/merchantsOrders/getPurchaseOrdersList",
        method: "get",
        params: query
    });
}
// /pick/getPurchaseCommodityList 获取商户进货列表
export function getPurchaseCommodityList(query) {
    return axios({
        url: "/goldendays-order/merchantsOrders/getPurchaseCommodityList",
        method: "get",
        params: query
    });
}
// /pick/pickOrder 商家端-发起提货申请
export function pickOrder(query) {
    return axios({
        url: "/goldendays-user/pick/pickOrder",
        method: "post",
        data: query
    });
}

// admin/getPickUpCommdityPage 获取进货商家列表接口2.0
export function getPickUpCommdityPage(query) {
    return axios({
        url: "/goldendays-user/admin/getPickUpCommdityPage",
        method: "get",
        params: query
    });
}

// admin/getAllPurchaseOrdersList 获取商户进货列表
export function getAllPurchaseOrdersList(query) {
    return axios({
        url: "/goldendays-user/admin/getAllPurchaseOrdersList",
        method: "get",
        params: query
    });
}


//new我的公司
// /goldendays-promote/companyManager/getCompanyDetails   公司详情
export function getCompanyDetails(query) {
    return axios({
        url: "goldendays-promote/companyManager/getCompanyDetails",
        method: "post",
        params: query
    });
}
// /goldendays-promote/companyManager/getCreateCompanyList   查询创建的公司
export function getCreateCompanyList(query) {
    return axios({
        url: "goldendays-promote/companyManager/getCreateCompanyList",
        method: "get",
        params: query
    });
}
// /goldendays-promote/companyManager/getOfficeCompanyList    查询任职的公司
export function getOfficeCompanyList(query) {
    return axios({
        url: "goldendays-promote/companyManager/getOfficeCompanyList",
        method: "get",
        params: query
    });
}